//@ts-check
// 手写promise 作业
import MyPromise from './part1MyPromise.js'


let promise = new MyPromise((resolve, reject)=>{
    // throw new Error('executor error') //执行器报错
    resolve("成功")
    // reject("失败")
})

promise.then(value => console.log(value), reason => console.log(reason))




